/**
 * @file color_config.h
 * @brief set color config for display
 * @author achdu0000@163.com
 * @version 1.0.0
 * @date 2024/07/09
 *
 * This file contains the definitions of some global colors to use uniformly.
 *
 */
#ifndef COLOR_CONFIG_H
#define COLOR_CONFIG_H

#include<lvgl.h>
#include "../constants.h"

// #define SCREEN_BG_COLOR lv_palette_darken(LV_PALETTE_GREY, 1)
#define SCREEN_FG_COLOR lv_palette_darken(LV_PALETTE_GREY, 1)
#define SCREEN_BG_COLOR lv_palette_lighten(LV_PALETTE_GREY, 1)

#define SCREEN_SIXTY_JIAZI_CIRCLE_BG_COLOR lv_color_make(157, 195, 230)
#define SCREEN_TWENTY_FOUR_JIEQI_CIRCLR_BG_COLOR lv_color_make(169, 209, 142)



/**
 * get the color of wu xing
 * @param wx    enum of WUXING
 * @return      the color of WUXING
 * @note 
 * -  WX_JIN -> white
 * - WX_SHUI -> black
 * -   WX_MU -> green
 * -  WX_HUO -> red
 * -   WX_TU -> yellow
 */
lv_color_t get_wuxing_color(WUXING wx);

/**
 * get the color of yin yang
 * @param yy    enum of YINYANG
 * @return      the color of YINYANG
 * @note 
 * -  YIN -> black
 * - YANG -> white
 */
lv_color_t get_yinyang_color(YINYANG yy);


#endif //COLOR_CONFIG_H